from os.path import abspath, dirname, join, pardir
import sys

SHARED_FILES = abspath(join(dirname(__file__), pardir, pardir))
LOCALE_PATH = join(SHARED_FILES, 'i18n')
RESOURCE_PATH = join(SHARED_FILES, 'res')

GETTEXT_DOMAIN = 'simpledcpp'

import pygtk
pygtk.require('2.0')

from gtk import glade
import gettext
import locale

locale.setlocale(locale.LC_ALL, '')
for module in glade, gettext:
	module.bindtextdomain(GETTEXT_DOMAIN, LOCALE_PATH)
	module.textdomain(GETTEXT_DOMAIN)

import __builtin__
__builtin__._ = gettext.gettext

from simpledcpp import main
